package com.maybach.core.template.impl;

        import org.springframework.stereotype.Component;

        import java.util.Map;

/**
 * Created by houenxun on 16/3/7.
 */
@Component
public class InfoRejectTemplate extends AbstractTemplate {
    @Override
    public String getCode() {
        return "infoReject";
    }

    @Override
    public String getTemplate() {
        return "您的订单宝申请$!{loanOrder.orderNo}（$!{loanOrder.orderName}）的${type}由于${reason}原因未通过审批，请您重新上传，如有疑问，请拨打4000390158联系客服专员。";
    }


    @Override
    public boolean checkParams(Map<String, Object> params) {
        if (null != params) {
            if (params.containsKey("loanOrder") && params.containsKey("type")&& params.containsKey("reason")) {
                return true;
            }
        }
        return false;
    }

    @Override
    public String getTitle() {
        return "订单宝资料审批状态变更通知";
    }
}